import Vue from 'vue';
import Router from 'vue-router';
import Home from '@/views/home/index.vue'; // 首页
import Query from '@/views/query/index.vue'; // 数据查询
import Print from '@/views/print/index.vue'; // 成绩打印
import Group from '@/views/print/group.vue'; // 成绩打印


Vue.use(Router);

export default new Router({
    routes: [
        {
            path: '/',
            name: 'Home',
            component: Home,
            meta: {
                title: '首页'
            }
        },
        {
            path: '/query',
            name: 'Query',
            component: Query,
            meta: {
                title: '数据查询'
            }
        },
        {
            path: '/print',
            name: 'Print',
            component: Print,
            meta: {
                title: '成绩打印'
            }
        },
        {
            path: '/group',
            name: 'Group',
            component: Group,
            meta: {
                title: '分组打印'
            }
        }
    ]
});
